package com.topc.ucenter.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 角色资源中间关系表
    * </p>
*
* @author itcast
*/
@Data
@TableName("role_menu_mid")
public class RoleMenuMid implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long menuId;

    private Long roleId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime createTime;

}
